Defining Status Messages
You can define your own status ('stat'
) resources for sending informational messages to the desktop printer window while a document is printing. Each status resource includes a status-type indicator, a status ID value, an alert value, and the status string. Listing 3-25 shows a status resource that defines the status text string displayed while the ImageWriter II printer driver is sending document data to the printer.Listing 3-25 A status resource for the ImageWriter II printer driver
resource 'stat' (kDriverStatus, sysHeap, purgeable) { 'IWII', { gxInformationalStatus, 1, 0, "Sending data to printer"; gxUserAlert, 1, kDriverStatus, "Please check that the printer is on-line"; } };
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help